﻿<UserControl x:Class="Probel.Ldoc.Views.Controls.TextPopupView"
             
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:t="clr-namespace:Probel.Ldoc.Views.Properties"
             xmlns:tk="http://schemas.xceed.com/wpf/xaml/toolkit"
             
             mc:Ignorable="d" Height="77" Width="300">

    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="../Themes/Generic.xaml"/>
                <ResourceDictionary>
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <Border BorderThickness="5"
            CornerRadius="5"
            Background="#FFF4F8FC">
        <Border.Effect>
            <DropShadowEffect Color="#FFB6B6B6"/>
        </Border.Effect>
        <DockPanel Background="#FFF6F6F6">
            <Border Style="{StaticResource ToolBoxBorderStyle}"
                Margin="0,0,5,0">
                <StackPanel Orientation="Horizontal"
                            HorizontalAlignment="Right">
                    <Button Content="{x:Static t:Messages.Btn_Create}"
                            Style="{DynamicResource ButtonToolBoxStyle}" 
                            Command="{Binding CreateCommand}"
                            IsDefault="True"
                            Click="Click_Create"/>
                </StackPanel>
            </Border>
            <Grid>
                <tk:WatermarkTextBox x:Name="focused" 
                                 VerticalAlignment="Center"
                                 VerticalContentAlignment="Center"
                                 Margin="5"
                                 Watermark="{Binding Watermark}"
                                 Text="{Binding ItemName, UpdateSourceTrigger=PropertyChanged}"/>
            </Grid>
        </DockPanel>
    </Border>
</UserControl>
